package com.wangxiang.shop.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wangxiang.common.utils.DataEntity;
import com.wangxiang.common.utils.PageEntity;
import com.wangxiang.common.utils.PageUtils;
import com.wangxiang.shop.member.entity.MemberEntity;
import com.wangxiang.shop.member.entity.ShopCartEntity;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author wangxiang
 * @email 2293672863@qq.com
 * @date 2022-04-04 21:34:29
 */
public interface MemberService extends IService<MemberEntity> {
    int register(HashMap<String , Object> map);

    MemberEntity selectUserByLoginName(String name);

    ShopCartEntity list(int userId);

    MemberEntity info(int userId);

    PageEntity page(PageEntity pageEntity);

    int balance(int userId,double price);

    MemberEntity getEntityByName(String name);

    MemberEntity selectEntityByName(String name);
    int updateStatus(HashMap<String , Object> map);

    List<HashMap<String , Object>> memberOrderList(List<HashMap<String , Object>> list);

    List<MemberEntity> entityList();

    List<DataEntity> sexData();


    List<DataEntity> ageData();

    List<DataEntity> locationData();

    HashMap<String, Integer> numInfo();

    void line(int userId,int lineStatus);
}

